import { createApp } from "vue";
import pinia from "@/store";
//清除默认样式
import "@/style/reset.scss";
//引入根组件
import App from "./App.vue";
//引入全局组件--顶部，底部
import HospitalTop from "@/components/hospital_top/index.vue";
import HospitalBottom from "@/components/hospital_bottom/index.vue";
import Login from "@/components/login/index.vue";
import Visitor from "@/components/visitor/visitor.vue";
//引入element-plus插件
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
//国际化文件
import zhCn from "element-plus/es/locale/lang/zh-cn";
import router from "./router";
//引入路由鉴权的文件
import './permission'
const app = createApp(App);
app.component("HospitalTop", HospitalTop);
app.component("HospitalBottom", HospitalBottom);
app.component("Login", Login);
app.component("Visitor", Visitor);
app.use(pinia);
app.use(router);
//安装element-plus
app.use(ElementPlus, {
  locale: zhCn,
});

app.mount("#app");
